{extend name="public:base"}


{block name='body'}
<style>
    .external font{
        color: red;
    }
    li{
        height: 44px;
    }
</style>
<div class="view view-main white-navbar white-toolbar">
    <div data-name="home" class="page">
        <div class="page-content padding-bottom50">
            <div class="me-top">
                <img src="__PUBLIC__/img/bg.jpg" class="bg" alt="" />
                <!-- <a href="{:url('msg')}" class="msg external"><i class="iconfont icon-xiaoxi"></i>{gt name='info.msg_count' value='0'}<span class="badge color-red">{$info.msg_count|default=0}</span>{/gt}</a> -->
                <div class="m">
                    <img src="{$info.img}" alt="" onerror="this.src='/static/index/old/img/touxiang.jpg'"/>
                    <p class="p1">ID:{$_user.code}</p>
                    <p class="p2">昵称:{$_user.name}</p>

                    <p class="p2">级别:{$_user.lg_title}</p>
                    <p class="p2">余额:{$_user.balance}</p>
                </div>
            </div>
         
            <div class="me-dorder">
                <a href="/my_order?state=1" class="external">
                    <i class="iconfont icon-daifukuan"></i><br />待付款
                    {if condition='isset($info.order_count.1) && $info.order_count.1 gt 0'}<span>{$info.order_count.1}</span>{/if}
                </a>
                <a href="/my_order?state=2" class="external">
                    <i class="iconfont icon-icon-test"></i><br />待发货
                    {if condition='isset($info.order_count.2) && $info.order_count.2 gt 0'}<span>{$info.order_count.2}</span>{/if}
                </a>
                <a href="/my_order?state=3" class="external">
                    <i class="iconfont icon-gerenzhongxindingdandaishouhuo"></i><br />待收货
                    {if condition='isset($info.order_count.3) && $info.order_count.3 gt 0'}<span>{$info.order_count.3}</span>{/if}
                </a>
                <a href="/my_order?state=4" class="external">
                    <i class="iconfont icon-31daipingjia"></i><br />已签收
                    {if condition='isset($info.order_count.4) && $info.order_count.4 gt 0'}<span>{$info.order_count.4}</span>{/if}
                </a>
            </div>

            <div class="list me-clist">
                <ul>
                    <li>
                        <a href="{:url('info')}" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-yonghu2"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">个人信息</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <!-- <li>
                        <a href="/my_team" class="item-content external" href="">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我的团队</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <!-- <li>
                        <a href="/sign" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-yonghu2"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我要签到</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                  
                    <li>
                        <a href="/fx_qrcode" class="item-content external" href="">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">推广中心</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="/statistics" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">数据统计</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="/purse?t=yeji" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">销售业绩</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="/my_order" class="item-content external" href="">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我的订单</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <!-- <li>
                        <a href="{:url('wallet')}" class="item-content external">
                            <div class="item-media">
                                    <i class="iconfont icon-jine"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我的钱包</div>
                                <div class="item-after">{$info.balance}<i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <!-- <li>
                        <a href="{:url('amount')}" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-qianbao"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我的金额</div>
                                <div class="item-after">{$info.jbalance}<i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <!-- <li>
                        <a href="/convert" class="item-content external" href="">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我要兑换</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <li>
                        <a href="/draws" class="item-content external" href="">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我要提现</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <!-- <li>
                        <a href="/recharge" class="item-content external" href="">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">我要充值</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <!-- <li>
                        <a href='{eq name="info.user_type" value="0"}javascript:app.dialog.alert("单次购物满{$full_amount}元才能参与分销！");{else/}{:url("fx")}{/eq}' class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-fenxiao"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">分销中心</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <!-- <li>
                        <a href="{:url('business')}" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-shangjia"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">商家中心</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li> -->
                    <!-- {if condition="$info.user_type eq 2 || $info.user_type eq 3"}
                    <li>
                        <a href="{:url('manage')}" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-yonghuzu"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">{eq name='info.user_type' value='2'}店长{else/}店员{/eq}管理</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    {/if} -->
                    <li>
                        <a href="/address" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-shangjia"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">收货地址</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a onclick="layer.msg('清除完成')" class="item-content external">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">清除缓存</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                    <li>
                        <a href="javascript:;" onclick="logout();" class="item-content external" href="">
                            <div class="item-media">
                                <i class="iconfont icon-dingdan"></i>
                            </div>
                            <div class="item-inner">
                                <div class="item-title">退出登录</div>
                                <div class="item-after"><i class="iconfont icon-jiantou"></i></div>
                            </div>
                        </a>
                    </li>
                   
                </ul>
            </div>

        </div>

        {include file='public:tab' /}
    </div>
</div>
{/block}

{block name="js"}
<script>
 function logout() {
        $.post("{:url('logout')}", '1', function(data){
            messageToast(data.info);
            setTimeout(function(){
                window.location.href = "/"
            }, 1000);

        }, 'json');
    }
</script>
{/block}